﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="CompanyResumeList.aspx.cs" Inherits="Member_Job_CompanyResumeManager" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="server">

    <script type="text/javascript" src="../../js/jquery-cn.js"></script>

    <script type="text/javascript" src="../../js/jquery.js"></script>

    <script type="text/javascript">
        function SelectAll()
        {
            // 找到所有的 input 元素
            var ctllist = document.getElementsByTagName("input");
            var objcheckbox= document.getElementById("CheckBox2");     
            for( var i = 0; i< ctllist.length; i++)
            {
                if(ctllist[i].type == "checkbox" && ctllist[i].name.indexOf( "CheckBox1") >=0 )
                {   
                    if(objcheckbox.checked==true)     
                         ctllist[i].checked = true;
                    else
                         ctllist[i].checked = false;
                }
          
             }
         }
          
    function checkbox(){
        // 找到所有的 input 元素
        var ctllist = document.getElementsByTagName("input");
        var chec=false;             
        for( var i = 0; i< ctllist.length; i++){
            if( ctllist[i].type == "checkbox" && ctllist[i].name.indexOf( "CheckBox1") >=0){
                if(ctllist[i].checked==true){
                    chec=true;  
                }
            }           
        }
        if(chec==false){
            alert("请至少选择一项");
            return false;
        }else
        {
           return confirm("确定要删除吗？");
        }    
    }  
    
     function checkbox1(){
        // 找到所有的 input 元素
        var ctllist = document.getElementsByTagName("input");
        var chec=false;             
        for( var i = 0; i< ctllist.length; i++){
            if( ctllist[i].type == "checkbox" && ctllist[i].name.indexOf( "CheckBox1") >=0){
                if(ctllist[i].checked==true){
                    chec=true;  
                }
            }           
        }
        if(chec==false){
            alert("请至少选择一项");
            return false;
        }else
        {
           return confirm("确定要将此移动到简历库吗？");
        }    
    }  
    
    
    </script>

    <form id="form1">
        <div id="sub_content">
            <div class="pagetitle">
                应聘人管理</div>
            <div class="main_Supply_nav">
                <ul>
                    <li class="MenuLiCheck">应聘人管理 </li>
                    <li class="search">
                        <table cellpadding="0" cellspacing="0" border="0" width="540">
                            <tr>
                                <td>
                                    姓名：<asp:TextBox ID="txtname" runat="server" Height="17"></asp:TextBox>
                                    职位名称：<asp:DropDownList ID="dropTypeID" runat="server">
                                    </asp:DropDownList>
                                    筛选:<asp:DropDownList ID="drpResume" runat="server">
                                        <asp:ListItem Value="0">全部</asp:ListItem>
                                        <asp:ListItem Value="2">最符合</asp:ListItem>
                                        <asp:ListItem Value="1">符合</asp:ListItem>
                                        <asp:ListItem Value="3">不符合</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:Button ID="btnSelect" runat="server" Text="立即查询" CssClass="i_button" OnClick="btnSelect_Click">
                                    </asp:Button></td>
                            </tr>
                        </table>
                    </li>
                </ul>
            </div>
            <asp:GridView ID="grdJob" runat="server" AutoGenerateColumns="False" CellPadding="0"
                Font-Overline="False" CssClass="table_main" OnRowDeleting="grdJob_RowDeleting"
                OnRowDataBound="grdJob_RowDataBound">
                <EmptyDataTemplate> 
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td>
                                选项
                            </td>
                            <td>
                                姓名
                            </td>
                            <td>
                                应聘职位名称
                            </td>
                            <td>
                                专业
                            </td>
                            <td>
                                最高学历
                            </td>
                            <td>
                                地址
                            </td>
                            <td>
                                手机
                            </td>
                            <td>
                                电话
                            </td>
                            <td>
                                登记时间
                            </td>
                            <td>
                                状态
                            </td>
                            <td>
                                简历状态
                            </td>
                            <td>
                                删除
                            </td>
                        </tr>
                    </table>
                    <table width="100%" style="text-align: left">
                        <tr>
                            <td style="text-align:left">
                                <asp:Label ID="Label1" runat="server" ForeColor="red" Text="暂无数据"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <Columns>
                    <asp:TemplateField HeaderText="选项">
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th20 tou" />
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="姓名">
                        <ItemTemplate>
                            <a style="text-decoration: underline; border-bottom-color: Red;" href='ResumeDetails.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>'>
                                <%# Eval("name")%>
                            </a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="应聘职位名称">
                        <ItemTemplate>
                            <%# Eval("Position")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="专业">
                        <ItemTemplate>
                            <%# Eval("TalentType")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="最高学历">
                        <ItemTemplate>
                            <%# Eval("HighestEducation")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="地址">
                        <ItemTemplate>
                            <%# Eval("ContactAddress")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="手机">
                        <ItemTemplate>
                            <%# Eval("Telephone")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="电话">
                        <ItemTemplate>
                            <%# Eval("Mobile")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="登记时间">
                        <ItemTemplate>
                            <%# GetShortDate(DataBinder.Eval(Container.DataItem, "AddDate").ToString())%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%# turncn(Convert.ToInt32(Eval("Mark")))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="简历状态">
                        <ItemTemplate>
                            <%# RelaseState(Convert.ToBoolean(Eval("isEnable")))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:LinkButton ID="BtnDelete" runat="server">删除</asp:LinkButton>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="BtnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                OnClientClick="return confirm('确认要删除此条信息吗？')">删除</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div class="paging">
                <p>
                    <uc1:PageNo ID="PageNo1" runat="server" />
                </p>
                <input id="CheckBox2" name="CheckBox2" onclick="SelectAll();" type="checkbox" />
                全选
                <asp:Button ID="btnDelete" CssClass="i_button1" runat="server" OnClientClick="return checkbox();"
                    Text="批量删除" OnClick="btnDelete_Click" />
            </div>
            <asp:HiddenField ID="HiddenField1" runat="server" />
        </div>
    </form>
</asp:Content>
